package com.changgou.collect.service;

import com.changgou.collect.pojo.Collect;
import com.github.pagehelper.PageInfo;

import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:Collect业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface CollectService {

    /**
     * 是否已经被收藏
     *
     * @param skuid
     * @param username
     * @return
     */
    boolean isCollect(String skuid, String username);


    void add(String skuid, String username);

    /**
     * 根据用户名和id删除
     */
    boolean deleteCollectByUsernameAndId(String username, String skuId);

    List<Collect> findList(String username);
}
